import Vue from 'vue'
import App from './App'
import store from './store/index'
import Request from './utils/request'
import uView from "uview-ui";
import ESQiNiu from './utils/ES6qiniu';
import _ from 'lodash'


Vue.use(uView);

import { isLoginNavigateTo, isAppTo } from '@/utils/checkNavigateTo'


//把vuex定义成全局组件
Vue.prototype.$store = store

Vue.prototype.$https = Request

Vue.prototype.$qiniu = new ESQiNiu();

Vue.prototype.$_ = _


Vue.prototype.isLoginNavigateTo = isLoginNavigateTo
Vue.prototype.$isAppTo = isAppTo
Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
  ...App
})

app.$mount()
